// 加法，指针，间接寻址操作符

#include <iostream>
using namespace std;

int main() {
    int a;
    int b;
    int c;

    // 取得地址赋值给指针变量
    int *pA = &a;
    int *pB = &b;
    int *pC = &c;

    // 间接寻址进行赋值
    *pA = 5;
    *pB = 7;
    *pC = *pA + *pB;

    cout << "通过指针访问变量进行加法操作\n"
        << *pA << " + " << *pB << " = " << *pC << "\n";
}